MySQLdb-_mysql.c:46:10: fatal error: Python.h: No such file or directory

49

# For Python 3.* and Debian in particular, I needed
sudo apt install libpython3.*-dev #you can put python version num instead of '*'
sudo apt-get install mysql-server
#mysql-config is in a different package, which can be installed from (again, assuming debian / ubuntu):

sudo apt-get install libmysqlclient-dev
#if you are using mariadb, the drop in replacement for mysql, then run
sudo apt-get install libmariadbclient-dev
sudo apt-get install mysql-server
#mysql-config is in a different package, which can be installed from (again, assuming debian / ubuntu):

sudo apt-get install libmysqlclient-dev
#if you are using mariadb, the drop in replacement for mysql, then run
sudo apt-get install libmariadbclient-dev
sudo apt-get install mysql-server
#mysql-config is in a different package, which can be installed from (again, assuming debian / ubuntu):

sudo apt-get install libmysqlclient-dev
#if you are using mariadb, the drop in replacement for mysql, then run
sudo apt-get install libmariadbclient-dev
sudo apt-get install mysql-server
#mysql-config is in a different package, which can be installed from (again, assuming debian / ubuntu):

sudo apt-get install libmysqlclient-dev
#if you are using mariadb, the drop in replacement for mysql, then run
sudo apt-get install libmariadbclient-dev
sudo apt-get install mysql-server
#mysql-config is in a different package, which can be installed from (again, assuming debian / ubuntu):

sudo apt-get install libmysqlclient-dev
#if you are using mariadb, the drop in replacement for mysql, then run
sudo apt-get install libmariadbclient-dev

Comments

Submit
0 Comments